import RotateObj from "../Common/RotateObj";
import GasStove from "./GasStove";

export default class GasButton extends RotateObj {
    private gasStove: GasStove;

    startByBase() {
        this.gasStove = this.owner.parent.getComponent(GasStove);
    }
    
    protected InteractiveLogic(): boolean {
        this.gasStove.InteractGas();
        super.InteractiveLogic();
        return true;
    }
}